package cn.huiyunche.base.service.mappers.ext;

import cn.huiyunche.base.service.model.BProductArrivalConfigExample;
import cn.huiyunche.base.service.vo.BProductCoefficientVo;
import cn.huiyunche.base.service.vo.BProductVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface BProductsViewMapper {

    /**
     * @param example
     * @return
     * @Title: selectProductsByConditions
     * @Description: 根据条件
     * @return: List<BProductVo>
     */
    List<BProductVo> selectProductsByConditions(BProductArrivalConfigExample example);

    /**
     * @param id
     * @return
     * @Title: selectProductById
     * @Description: 根据id查询物流产品信息
     * @return: BProductVo
     */
    BProductVo selectProductById(long id);

    /**
     * @param distance
     * @param isExpedited
     * @return
     * @Title: selectCoefficientsByConditions
     * @Description: 查询价格系数
     * @return: List<BProductCoefficientVo>
     */
    List<BProductCoefficientVo> selectCoefficientsByConditions(@Param("distance") BigDecimal distance);

}
